<template>
  <div class="system-settings-container">
    <div class="page-header">
      <h1 class="page-title">系统设置</h1>
      <p>管理系统的各项配置和功能</p>
    </div>
    
    <div class="system-options">
      <el-card class="option-card">
        <div class="option-icon">
          <el-icon><User /></el-icon>
        </div>
        <div class="option-content">
          <h3>用户管理</h3>
          <p>管理系统用户、角色和权限</p>
          <el-button type="primary" @click="$router.push('/system/user')">进入管理</el-button>
        </div>
      </el-card>
      
      <el-card class="option-card">
        <div class="option-icon">
          <el-icon><Document /></el-icon>
        </div>
        <div class="option-content">
          <h3>模板管理</h3>
          <p>管理测试用例模板和生成规则</p>
          <el-button type="primary" @click="$router.push('/system/template')">进入管理</el-button>
        </div>
      </el-card>
      
      <el-card class="option-card">
        <div class="option-icon">
          <el-icon><Cpu /></el-icon>
        </div>
        <div class="option-content">
          <h3>大模型设置</h3>
          <p>配置AI模型参数和连接信息</p>
          <el-button type="primary" @click="$router.push('/system/ai-model')">进入管理</el-button>
        </div>
      </el-card>
    </div>
  </div>
</template>

<script setup lang="ts">
import { User, Document, Cpu } from '@element-plus/icons-vue';
</script>

<style scoped>
.system-settings-container {
  padding: 20px;
}

.page-header {
  margin-bottom: 30px;
  text-align: center;
}

/* 统一标题样式已在全局style.css中定义 */
.page-header p {
  color: #606266;
  font-size: 14px;
}

.system-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.option-card {
  flex: 1;
  min-width: 300px;
  transition: all 0.3s ease;
}

.option-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.option-icon {
  font-size: 48px;
  color: #409EFF;
  margin-bottom: 16px;
  text-align: center;
}

.option-content {
  text-align: center;
}

.option-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 8px;
}

.option-content p {
  color: #606266;
  font-size: 14px;
  margin-bottom: 16px;
}

.option-content .el-button {
  min-width: 120px;
}

@media (max-width: 768px) {
  .system-options {
    flex-direction: column;
    align-items: center;
  }
  
  .option-card {
    width: 100%;
    max-width: 400px;
  }
}
</style>